/*
 * DebugAspect.aj
 * 
 *  author: Daniel Rudigier
 *    date: 25.12.2008
 * 
 * 
 */
package at.syncme.aspects;

import at.syncme.framework.Event;

/**
 * @author Daniel Rudigier
 *
 */
public aspect DebugAspect extends GameAspect {
    
    //declare precedence: EventSignAspect, DebugAspect, *;
    
    after(): gameInit() { 
        System.out.println("game started.");
    }
    
    after() returning (Event e): eventCreated() {
        System.out.println("event created : " + e + " at " + e.getCreated());
    }
    
    after() returning (Event e): eventAcknowledged() {
        System.out.println("event ack : " + e + " at " + e.getAcknowledged());
    }

}
